package org.xyl.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "rag.vector-store")
@Data
public class VectorStoreConfig {

    @Value("${rag.vector-store.type}")
    private String type = "persistent"; // 默认使用持久化存储

    @Value("${rag.vector-store.chroma-url}")
    private String chromaUrl = "http://127.0.0.1:8000"; // Chroma服务器地址

    @Value("${rag.vector-store.persistent-path}")
    private String persistentPath = "./zkong-vector-store-data"; // 持久化存储路径

    @Value("${rag.vector-store.chroma-collection}")
    private String chromaCollection = "zkong-rag"; // Chroma集合名称

}